package com.swh.qa;

import com.swh.qa.dao.Impl.BaseDaoImpl;
import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import com.swh.utils.IdUtil;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author swh
 * @Description
 * @date 2021-01-13 19:26:36
 */
@EnableJpaRepositories(basePackages = {"com.swh.qa"},repositoryBaseClass = BaseDaoImpl.class)
@EnableDiscoveryClient
@EnableFeignClients
@EnableEurekaClient
//@SpringBootApplication
@SpringBootApplication(exclude = MongoAutoConfiguration.class)
public class QaApplication {

    public static void main(String[] args) {
        SpringApplication.run(QaApplication.class, args);
    }

    @Bean
    public IdUtil idUtil() {
        return new IdUtil();
    }

}
